import axios from 'axios'
const admin = {
    addAdmins(data) {
        return axios({
            url: "/admin/addAdmins",
            method: "POST",
            data
        })
    },
    getAllAdmins(params) {
        return axios({
            url: "/admin/getAllAdmins",
            method: "GET",
            params
        })
    },
    delAdmins(data) {
        return axios({
            url: "/admin/delAdmins",
            method: "POST",
            data
        })
    },
    login(data) {
        return axios({
            url: "/admin/login",
            method: "POST",
            data
        })
    }
}
export default admin